/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.web.dao;

import com.web.entity.Grade;
import com.web.entity.Test;
import java.util.List;

/**
 *试题数据库接口
 * 
 * 2.getoneQbyQid()
 * 3.getAllbyCid()
 * 4.getAll()
 * getBykeyword()
 * @author liqianru
 */
public interface  Testdao {
    public Test getoneQbyQid(String qid);
    public List<Test>getAllbyCid(String qid);
    public List<Test>getAll();
    public List<Test>getAllBypage(int currentPage ,int pageSize);
    public List<Test> getBykeyword(String keyword);
    public int insertTest(Test t);
    public int modifyTest(Test t);//管理员用于修改单个试题
    public int deleteTest(String qid);//管理员用于删除单个试题
    public List<Test> getOneByCourseid(int courseid);
    public List<Grade> getOneStudentgradeBysid(String sid);
}
